AEPutParamDesc
AEPutParamDesc Create parameter and add to Apple Event
#include <AppleEvents.h> Apple Event Manager
OSErr AEPutParamDesc( theAppleEvent, theAEkeyword, theAEDesc );
AppleEvent * theAppleEvent ; Apple Event to add parameter to
AEKeyword theAEkeyword ; Apple Event keyword
AEDesc * theAEDesc ; descriptor record for the parameter
returns Error Code; 0 = no error
The AEPutParamDesc function takes a descriptor record and a keyword and
converts them into a parameter that it adds to an Apple event.
The parameter theAppleEvent is the Apple event to which you are adding a
parameter.
The parameter theAEKeyword is the keyword for the parameter. If there was
already a parameter with this keyword in the Apple event, it is replaced.
The parameter theAEDesc is the descriptor record for the parameter.
For an example program showing usage of this routine, see the description of
Adding Parameters to an Apple Event.
Result codes
noErr (0) No error
memFullErr (-108) Not enough room in heap zone
errAEWrongDataType (-1703) Wrong descriptor type
errAENotAEDesc (-1704) Not a valid descriptor record
errAEBadListItem (-1705) Operation involving a list item failed